<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

?>
<div class='container'>
     <div class="tabbable"> <!-- Only required for left/right tabs -->
	<?=$tab_header;?>
       <div class="tab-content" style='height:450px;'>
        <div class="tab-pane active" id="table2">
		<div class='alert' style='display:none'></div></div>
       </div>
    </div>
</div>
<?=$modal;?>
<?  CalenderUI();;?>
<? //link_js('master_app','application/views/admin/js/');?>

<script language='javascript'>
	$(document).ready(function(e) {
		$('#myModal')
			.css({'top':'25%'})
			.modal('show');
		
		tglNow('#from_tgl');
		tglNow('#upto_tgl');
		$('#myModal #from_tgl').datepicker();
		$('#myModal #upto_tgl').datepicker();
		
		$('#b_Proses').click(function()
		{
			$.post('set_period_close',$('#frm1').serialize(),
			function(result)
			{
				$('#myModal').modal('hide');
				$('.alert').html(result).show().fadeOut(10000)
			})
		})
	});

</script>